package com.hq.service;

import com.hq.bean.Goods;
import com.hq.dao.GoodsDao;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;
@Service
public class GoodsServiceImpl implements GoodsService{
    @Resource
    private GoodsDao goodsDao;
    @Override
    public List list(Map map) {
        return goodsDao.list(map);
    }

    @Override
    public int addGoods(Goods goods) {
        return goodsDao.addGoods(goods);
    }

    @Override
    public int delGoods(Integer sid) {
        return goodsDao.delGoods(sid);
    }

    @Override
    public List brandlist() {
        return goodsDao.brandlist();
    }
}
